﻿using dz.u9.jky.schema.Attrib;
using dz.u9.jky.schema.Common;
using System.Collections.Generic;

namespace dz.u9.jky.schema.SM
{
    /// <summary>
    /// 销售价表
    /// </summary>
    public class DzSalePriceListDTO
    {
        /// <summary>
        /// 弹性域
        /// </summary>
        [DzComplexObject("UFIDA.U9.Base.FlexField.DescFlexField.DescFlexSegments,UFIDA.U9.Base.BaseBE")]
        public DescFlexField DescFlexField { get; set; }

        public string Code { get; set; }

        /// <summary>
        /// 币别
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string Currency { get; set; } = "C001";

        /// <summary>
        /// 组织
        /// </summary>
        [DzSimpleObject("UFIDA.U9.CBO.Pub.Controller.CommonArchiveDataDTO,UFIDA.U9.CBO.PubSV")]
        public string Org { get; set; }

        [DzList("UFIDA.U9.ISV.SM.SalePriceLineDTO,UFIDA.U9.ISV.SM.SDIndustryChainSV")]
        public List<DzSalePriceLineDTO> SalePriceLines { get; set; }

        /// <summary>
        /// 价格含税
        /// </summary>
        public bool IsIncludeTax { get; set; } = true;
    }
}
